package com.wn.test;

import com.wn.entity.Person;
import com.wn.factoryUtils.SecondFactory;

public class day1test2 {
    public static void main(String[] args) {
        /*FirstFactory factory = new FirstFactory();
        Person person = (Person)factory.doPerson("中国人");*/
        SecondFactory secondFactory = new SecondFactory();
        Person person = (Person)secondFactory.doPerson("com.wn.entity.Jap");

        person.eat();
    }





}
